<?php
/**
 * 美妆镜 PC 端素材管理软件接口
 *
 * Author: Zeon
 * Date: 2018/3/23
 * Created by Panxsoft.
 */

use Illuminate\Support\Facades\Route;

/**
 * @see \App\Http\Controllers\PC\PanxAssetController::index()
 */
Route::get('/panx-asset', 'PanxAssetController@index')
    ->name(\App\Http\Controllers\PC\PanxAssetController::ROUTE_INDEX);

/**
 * @see \App\Http\Controllers\PC\PcAuthController::login()
 */
Route::post('/login', 'PcAuthController@login');


/**
 * @see \App\Http\Controllers\PC\CustomerStore\AssetController::showPivotProductIds()
 */
Route::get('/customer/{customer_id}/store/{store_id}/asset-pivot-product-ids', 'CustomerStore\AssetController@showPivotProductIds');

/**
 * @see \App\Http\Controllers\PC\CustomerStore\AssetController
 */
Route::resource('customer.store.asset', 'CustomerStore\AssetController')
    ->names(\App\Http\Controllers\PC\CustomerStore\AssetController::ROUTES);

/**
 * @see \App\Http\Controllers\PC\CustomerStore\PackController
 */
Route::resource('customer.store.pack', 'CustomerStore\PackController')
    ->names(\App\Http\Controllers\PC\CustomerStore\PackController::ROUTES);

/**
 * @see \App\Http\Controllers\PC\CustomerStore\PackCategoryController
 */
Route::resource('customer.pack-category', 'CustomerStore\PackCategoryController');

/**
 * @see \App\Http\Controllers\PC\CustomerStore\ProductController
 */
Route::resource('customer.store.product', 'CustomerStore\ProductController');

/**
 * @see \App\Http\Controllers\PC\CustomerStore\ProductController::patchAsset
 */
Route::patch(
    '/customer/{customer_id}/store/{store_id}/product-asset/{product_id}',
    'CustomerStore\ProductController@patchAsset');

/**
 * @see \App\Http\Controllers\PC\CustomerStore\ProductController::patchesAsset
 */
Route::patch(
    '/customer/{customer_id}/store/{store_id}/products-asset',
    'CustomerStore\ProductController@patchesAsset')
    ->name(\App\Http\Controllers\PC\CustomerStore\ProductController::ROUTES['patchesAsset']);

/**
 * @see \App\Http\Controllers\PC\BosImageUploadController::store()
 */
Route::post('bos-image', 'BosImageUploadController@store');

/**
 * @see \App\Http\Controllers\PC\BosImageUploadController::storeMulti()
 */
Route::post('bos-images', 'BosImageUploadController@storeMulti');


/**
 * @see \App\Http\Controllers\PC\Customer\ShareProductController::patchProductsAsset()
 */
Route::patch('share-product/patch-products-asset', 'Customer\ShareProductController@patchProductsAsset')
    ->name(\App\Http\Controllers\PC\Customer\ShareProductController::ROUTES['patchProductsAsset']);


/**
 * @see \App\Http\Controllers\PC\Customer\ShareProductController
 */
Route::resource('share-product', 'Customer\ShareProductController')
    ->names(\App\Http\Controllers\PC\Customer\ShareProductController::ROUTES);

